﻿@model SyncCarExitStationModel
<form class="form-horizontal uiform" method="post"
      style="background-color:#fff0ef;"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">违规登记信息管理 - <span style="color:red">@Model.BusCode</span></h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.MarkCreate()
        @Html.HiddenFor(p => p.Id)
        <div class="form-body">
            <table class="table table-bordered table-striped table-details">
                <tr>
                    <th class="w100px">车牌号</th>
                    <td>
                        @Model.BusCode
                    </td>
                    <th>客运站</th>
                    <td>
                        @Model.OwnerStationName
                    </td>
                </tr>
                <tr>
                    <th>出站时间</th>
                    <td>@DateTimeHelper.FormatDateHasSecond(Model.OutTime) </td>
                    <th> 运行时间 </th>
                    <td>
                        @Model.RunSecond 分钟
                    </td>
                </tr>
                <tr>
                    <th> 出站乘客 </th>
                    <td> @Model.OutNum 人 </td>
                    @*<th>售票数</th>
                    <td>@Model.SaleCount 人</td>
                </tr>
                <tr>
                    <th>核载人数</th>
                    <td>@Model.SeatCount 人</td>*@
                    <th>线路</th>
                    <td>@Model.LineName</td>
                </tr>
                <tr>
                    <th>司机姓名</th>
                    <td>@Model.Driver1Name</td>
                    <th>司机电话</th>
                    <td>@Model.Driver1Tel</td>
                </tr>
                <tr>
                    <th>运输企业</th>
                    <td>
                        @Model.OwnerCompName
                    </td>
                    <th>运行状态</th>
                    <td>@Html.BoolLabel(Model.RunStatus, Model.RunStatusText, Model.RunStatusText)</td>
                </tr>
                <tr>
                    <th>稽查点</th>
                    <td>@Model.PointName</td>
                    <th></th>
                    <td></td>@*@Html.BoolLabel(Model.Enabled, Model.EnabledText, Model.EnabledText)*@
                </tr>
                <tr>
                    <th>违规内容</th>
                    <td colspan="3">
                        <div class="form-group">
                            <div class="col-md-8">
                                <select class="form-control uiselect" name="@nameof(Model.OffenceId)"
                                        data-text-field="OffenceName" data-width="300"
                                        data-validate="required: true,maxlength: 4"
                                        data-validate-message="required:'请选择违规状态'">
                                    <option></option>
                                    @Html.EmptyOption("全部违规状态")
                                    @Html.OffenceIdCategoryOption(Model.OffenceId)
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>备注</th>
                    <td colspan="3"><textarea class="form-control" name="@nameof(Model.Note)" data-validate="maxlength: 200" rows="3">@Model.Note</textarea></td>
                </tr>
            </table>
            <input name="@nameof(Model.RunSecond)" value="@Model.RunSecond" type="hidden" />
            <input name="@nameof(Model.BusCode)" value="@Model.BusCode" type="hidden" />
            <input name="@nameof(Model.OwnerStationName)" value="@Model.OwnerStationName" type="hidden" />
            <input name="@nameof(Model.OutTime)" value="@Model.OutTime" type="hidden" />
            <input name="@nameof(Model.SaleCount)" value="@Model.SaleCount" type="hidden" />
            <input name="@nameof(Model.OutNum)" value="@Model.OutNum" type="hidden" />
            <input name="@nameof(Model.SeatCount)" value="@Model.SeatCount" type="hidden" />
            <input name="@nameof(Model.Enabled)" value="@Model.Enabled" type="hidden" />
            <input name="@nameof(Model.Driver1Name)" value="@Model.Driver1Name" type="hidden" />
            <input name="@nameof(Model.Driver1Tel)" value="@Model.Driver1Tel" type="hidden" />
            <input name="@nameof(Model.LineName)" value="@Model.LineName" type="hidden" />
            <input name="@nameof(Model.OwnerCompName)" value="@Model.OwnerCompName" type="hidden" />
            <input name="@nameof(Model.CheckStatus)" value="@Model.CheckStatus" type="hidden" />
            <input name="@nameof(Model.ProcessStatus)" value="@Model.ProcessStatus.ToString()" type="hidden" />
            <input name="@nameof(Model.OwnerStation)" value="@Model.OwnerStation" type="hidden" />
            <input name="@nameof(Model.RegType)" value="0" type="hidden" />
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 保存
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>